package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Demand;
import com.ruoyi.system.mapper.DemandMapper;
import com.ruoyi.system.service.DemandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DemandServiceImpl implements DemandService {

    @Autowired
    DemandMapper demandMapper;

    @Override
    public List<Demand> selectDemandList(Demand demand) {
        return demandMapper.selectDemandList(demand);
    }

    @Override
    public int insertAll(Demand demand) {
        return demandMapper.insertAll(demand);
    }

    @Override
    public int updateAll(Demand demand) {
        return demandMapper.updateAll(demand);
    }

    @Override
    public Demand selectDemand(Long demandId) {
        return demandMapper.selectDemand(demandId);
    }

    @Override
    public int updateByDemandId(Long[] demandIds) {
        return demandMapper.updateByDemandId(demandIds);
    }

    @Override
    public int updateAllByDemandId(Demand demand) {
        return demandMapper.updateAllByDemandId(demand);
    }


}
